"use strict";

const Controller = require('../common/admin')

class StoreSettlementController extends Controller {

  tableName = 'store_settlement'

  async storeSettle() {
    let data = await this.consult()
    console.log(data);
    this.resData(0, '获取成功', data)
  }

  async selectStore() {
    let { name } = this.ctx.request.body
    console.log('ehgfhsdfg', name)
    let result = await this.app.mysql.query(`SELECT * FROM store_settlement WHERE \`store_name\` LIKE '%${name}%'`)
    console.log(result)
    this.resData(0, '获取成功', result)
  }



}

module.exports = StoreSettlementController